package com.njxzc.igo.service;

import java.util.List;
import java.util.Map;

import org.hibernate.dialect.ResultColumnReferenceStrategy;

import com.njxzc.igo.model.Order;
import com.njxzc.igo.model.Products;
import com.njxzc.igo.model.User;
import com.njxzc.igo.utils.Pager;
import com.njxzc.igo.utils.ShoppingResult;

public interface OrderService {
	
	public void removeToBuyFromShoppingCart(String []shoppingcartIds,Map shoppingmap,List<String> productIdList );
	
	public ShoppingResult generateOrders(String sender,String payway,User user,int MoneyTotal,int amountTotal,
			String addressId,String []shoppingcartIds,Map map ,String message );
	
	public List<Order> loadUserOrders(String name);
	
	public Order loadOrderDetails(String orderStr);

	public Pager loadAllOrders(int page,int size);
	
	public Pager loadOrderProducts(Pager pager);

	public ShoppingResult loadAllOrderTypes();

	public ShoppingResult modifyOrderTypes(String orderId, String typeId);

	public ShoppingResult generateOrders(Products p ,String yunsong, String payway, User u, int money, int amounts,
			String addressId, String message);
	
	
}
